#include <stdio.h>
#include <string.h>

/**
 * 获取两个字符串中较长的那个字符串
 */
char *maxLen(char *a, char *b) {
    if (strlen(a) >= strlen(b)) {
        return a;
    }
    return b;
}
int main() {
    char *str1 = "hello";
    char *str2 = "worlddd";
    printf("较长的字符串：%s\n", maxLen(str1, str2));
}